package com.shujia.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component //表示通用的对象创建注解
@ConfigurationProperties(prefix = "student") // 配置注解，需要到配置文件中搜索，prefix表示对象前缀
public class Student {
    String student_name;
    String age;
    String gender;
    String clazz;
    String name;

    public void setName(String name) {
        this.name = name;
    }

    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "student_name='" + student_name + '\'' +
                ", age='" + age + '\'' +
                ", gender='" + gender + '\'' +
                ", clazz='" + clazz + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
